package com.example.retrofitdemo616lixiao.service;

import com.example.retrofitdemo616lixiao.bean.UserBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("api.php/login")
    Call<UserBean> login(
            @Query("username")String username,
            @Query("password")String userpass
    );
/*Retrofit retrofit=new Retrofit.Builder()
        .baseUrl("http://amicool.neusoft.edu.cn/")
        .addConverterFactory(GsonConverterFactory.create())
        .build();
    UserService userService=retrofit.create(UserService.class);
*/
}

